home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat3 / Tcl / source.z / source
Encoding:
Text File  |  2002-10-03  |  1.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ssssoooouuuurrrrcccceeee((((3333TTTTccccllll))))                                                      ssssoooouuuurrrrcccceeee((((3333TTTTccccllll))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      source - Evaluate a file as a Tcl script
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ssssoooouuuurrrrcccceeee _f_i_l_e_N_a_m_e
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      Read file _f_i_l_e_N_a_m_e and pass the contents to the Tcl interpreter as a
  17.      script to evaluate in the normal fashion.  The return value from ssssoooouuuurrrrcccceeee
  18.      is the return value of the last command executed from the file.  If an
  19.      error occurs in evaluating the contents of the file then the ssssoooouuuurrrrcccceeee
  20.      command will return that error.  If a rrrreeeettttuuuurrrrnnnn command is invoked from
  21.      within the file then the remainder of the file will be skipped and the
  22.      ssssoooouuuurrrrcccceeee command will return normally with the result from the rrrreeeettttuuuurrrrnnnn
  23.      command.  If _f_i_l_e_N_a_m_e starts with a tilde, then it is tilde-substituted
  24.      as described in the TTTTccccllll____TTTTiiiillllddddeeeeSSSSuuuubbbbsssstttt manual entry.
  25.  
  26.  
  27. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  28.      file, script
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.